#include "qhsguserform.h"
#include "chelperclass.h"

QHSGUserForm::QHSGUserForm(QDialog *parent)
	: QDialog(parent)
{
	ui.setupUi(this);
}

QHSGUserForm::~QHSGUserForm()
{

}

void QHSGUserForm::on_pushButton_clicked()
{
	CHelperClass helpClass(this);
	m_Info = helpClass.checkUser(ui.lineEdit->text(), ui.lineEdit_2->text());
	if(m_Info.size() != 0)
		done(1);
	else
		done(0);
}